package com.ruoyi.system.domain.dto.H5;

import com.ruoyi.system.domain.vo.H5.ScoreMovementVO;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class PersonalDataResultDto {
    /**
     *  球员头像
     */
    private String playerAvatar;
    /**
     * 球员名称
     */
    private String playerName;
    /**
     * 球员球号
     */
    private String playerNumber;


    /**
     * 球队胜利数
     */
    private Long winNum;
    /**
     * 球队失败数
     */
    private Long loseNum;
    /**
     * 球队排名
     */
    private String teamRank;


    /**
     * 主队名称
     */
    private String teamOneName;

    /**
     * 主队总分
     */
    private Long teamOneScore;


    /**
     * 客队名称
     */
    private String teamTwoName;
    /**
     * 客队名称
     */
    private Long teamTwoScore;

    /**
     * 得分数据
     */
    private List<ScoreList> scoreListList = new ArrayList<>();

    /**
     * GBPM值
     */
    private BigDecimal gbpm;

    /**
     * 折线图
     */
    private ScoreMovementVO scoreMovementVO;

    @Data
    public static class ScoreList{
        /**
         * 节数
         */
        private Long subsection = 0L;
        /**
         * 得分
         */
        private Long score = 0L;
        /**
         * 篮板
         */
        private Long backboard = 0L;
        /**
         * 助攻
         */
        private Long assist = 0L;
        /**
         * 抢断
         */
        private Long steal = 0L;
        /**
         * 盖帽
         */
        private Long block = 0L;
        /**
         * 投篮
         */
        private String basket;
        /**
         * 犯规
         */
        private Long foul = 0L;
        /**
         * 失误
         */
        private Long mistake = 0L;
        /**
         * 二分命中率
         */
        private BigDecimal twoPointRate = BigDecimal.ZERO;
        /**
         * 三分命中率
         */
        private BigDecimal threePointRate = BigDecimal.ZERO;
        /**
         * 罚球命中率
         */
        private BigDecimal pointRate = BigDecimal.ZERO;
        /**
         * 真实命中率
         */
        private BigDecimal rate = BigDecimal.ZERO;

        /**
         * GBPM值
         */
        private BigDecimal gbpm;
    }
}
